package com.itheima2;

import java.time.Year;

//给变量赋值的两种方法
public class students_demo {
    public static void main(String[] args) {


        students s1 = new students();

        s1.setName("BABA");
        s1.setYears(100);
        s1.show();


        students s2 = new students("BABA",100);
        s2.show();
    }

}
